﻿// ===============================================================================
// DotNet.Platform 开发框架 2016 版权所有
// ===============================================================================

using System;
using DotNet.Entity;

namespace DotNet.Edu.Entity
{
    /// <summary>
    /// 培训类型表
    /// </summary>
    [Table("培训类型表")]    
    public class EduCategory
    {
		/// <summary>
        /// 主键
        /// </summary>
        [PrimaryKey]
        [Column("主键",false)]
        public string Id { get; set; }

        /// <summary>
        /// 从业类型名称
        /// </summary>
        [Column("从业类型名称")]
        public string Name { get; set; }

        /// <summary>
        /// 培训总学时
        /// </summary>
        [Column("培训总学时")]
        public int EduTotalPeriod { get; set; } = 1;

		/// <summary>
        /// 每日最大培训学时
        /// </summary>
		[Column("每日最大培训学时")]
        public int EduDayMaxPeriod { get; set; } = 1;

        /// <summary>
        /// 验证问题允许尝试次数
        /// </summary>
        [Column("验证问题允许尝试次数")]
        public int ValidateTryTime { get; set; } = 1;

        /// <summary>
        /// 验证问题回答超时时间
        /// </summary>
        [Column("验证问题回答超时时间")]
        public int ValidateTimeout { get; set; } = 1;

        /// <summary>
        /// 验证问题随机弹出时间范围
        /// </summary>
        [Column("验证问题随机弹出时间范围")]
        public string ValidateRandomRange { get; set; } = "900-1200";

        /// <summary>
        /// 备注
        /// </summary>
        [Column("备注")]
        public string Note { get; set; }

        /// <summary>
        /// 复制对象
        /// </summary>
        public EduCategory Clone()
        {
            return (EduCategory)MemberwiseClone();
        }
    }
}